<?php
class MySQL_Connector extends MySQL {
	// Database Configuration
	private $host = "sql304.000a.biz";
	private $user = "a000b_10909332";
	private $password = "sabakuno123";
	private $database = "a000b_10909332_cashbook";
	private $local_host = "localhost";
	private $local_user = "root";
	private $local_password = "";
	private $local_database = "cashbook";
	
	public function __construct() {
		if($_SERVER['SERVER_NAME'] == "localhost")
		{
			parent::__construct($this->local_host, $this->local_user, $this->local_password, $this->local_database);
			return;
		}
		parent::__construct($this->host, $this->user, $this->password, $this->database);
	}
	
	public function __destruct() {
		parent::__destruct();
	}
}
?>